home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / prog_gen / psp_io.zip / READ.ME < prev   
Text File  |  1994-05-29  |  4KB  |  90 lines

  1.  
  2.                           ABOUT THESE FILES
  3.                           -----------------
  4.  
  5. The files PSP.ASM, CHARSTR.ASM, DOSIO.ASM, and MATHIO.ASM contain
  6. general-purpose functions for use in assembly-language programs.  
  7. The program - NUMVERT.EXE - demonstrates their usage.  
  8.  
  9. I wrote these 'procs' to solve a number of problems I encountered 
  10. in my own programming.  So I thought that perhaps they can also be 
  11. of assistance to other assembly-language programmers; especially
  12. beginners.  You might also find the include files, MACRO.INC and 
  13. COMMON.INC helpful.
  14.  
  15. All the code is written in IDEAL mode, using Turbo Assembler v3.0.  
  16. I find it alot easier than MASM mode.  I hope also that the program 
  17. NUMVERT.EXE (see below on instructions on how to use it) will be of 
  18. assistance to those seeking quick conversions between positive whole 
  19. decimal, hex and binary numbers.
  20.  
  21. Please contact me via CompuServe if you:       
  22.         find the program or any of its functions useful,
  23.         have problems with using any of the functions,
  24.         find source code which can be improved or deleted,
  25.         have any criticisms about the code,
  26.         have suggestions for improvements to NUMVERT.EXE, and/or
  27.         have suggestions for other functions or programs which 
  28.         other programmers or computer-users may find useful.
  29.  
  30. My CompuServe ID # is : 100236,2477
  31.  
  32. Any comments would be greatly appreciated.  I hope these functions 
  33. and NUMVERT.EXE will be found useful by many.  Please note that all
  34. these file are copyright. You are welcome to copy them and pass them 
  35. on to others, provided that all copyright notices remain unchanged and 
  36. are not deleted.  Hope you find them as useful as I did.
  37.  
  38.  
  39. NUMVERT.EXE
  40. -----------
  41.  
  42. NUMVERT, the number-converter, converts positive whole numbers between 
  43. decimal, hex and binary.  The simplest way to use NUMVERT is to simply 
  44. type 'numvert' at the command prompt (e.g. C:\>).  General instructions 
  45. for entering numbers are displayed as below:
  46.  
  47. C:\>numvert
  48.  
  49. Welcome to the Number Converter
  50. Copyright (c) by Simon Groes, 1994
  51.  
  52. ** INSTRUCTIONS **
  53. ------------------
  54. You may type in a decimal, hexadecimal or binary number.
  55. If you type a hexadecimal number, type an 'H' or 'h' at the end
  56. (no spaces in between).
  57. A hex number must be <= 16 characters long.
  58. If you type a binary number, type a 'B' or 'b' at the end.
  59. A binary number must be <= 16 characters long.
  60. Do not type any letter at the end of a decimal number.
  61. A decimal number must be between 0 & 65535.
  62.  
  63. Enter a number:
  64.  
  65. Alternatively, you may use NUMVERT with command-line parameters.
  66. The switches /h or -h, /b or -b and /d or -d instruct the program to
  67. convert the number to hex, binary and/or decimal respectively.  You may
  68. use one, two or all three of the switches with or without spaces 
  69. preceding them anywhere on the command line.  However, there must be 
  70. at least one space preceding the number you enter, which must also have
  71. the appropriate letter appended to it if it is not decimal.  
  72. If the number is not entered on the command-line, you will be prompted 
  73. by the the program as in the example below:
  74.  
  75. C:\>numvert/h/b
  76.  
  77. Enter a number:
  78.  
  79. If you only enter the number on the command line, NUMVERT will
  80. display the number in decimal, hex and binary.  If incorrect parameters
  81. are entered, the statement 'Invalid parameter(s)' will be displayed,
  82. and the program will run as if no parameters had been entered.
  83.  
  84. I hope you will find this program and these instructions useful.
  85.  
  86. Good luck with your programming.
  87.  
  88.                         -----------
  89.                         END OF FILE
  90.